@paro.io/expert-shared-components 1.14.66 → 1.14.68

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 (83) hide show
  1. package/lib/components/DocumentCenter/MultiFileUploadSection.js +220 -121
  2. package/lib/components/TaxAxis/TaxAxisApi.d.ts +0 -1
  3. package/lib/components/TaxAxis/TaxAxisShell.js +5 -80
  4. package/lib/components/shared/UploadClient.d.ts +2 -1
  5. package/lib/components/shared/UploadClient.js +6 -2
  6. package/lib/index.d.ts +1 -13
  7. package/lib/index.js +1 -27
  8. package/lib/tax-axis/components/clientReport/ExecutiveSummary.d.ts +4 -1
  9. package/lib/tax-axis/components/clientReport/ExecutiveSummary.js +10 -6
  10. package/lib/tax-axis/components/clientReport/Methodology.js +2 -2
  11. package/lib/tax-axis/components/clientReport/RecommendedStrategies.d.ts +6 -1
  12. package/lib/tax-axis/components/clientReport/RecommendedStrategies.js +26 -24
  13. package/lib/tax-axis/components/clientReport/StrategyCard.d.ts +1 -1
  14. package/lib/tax-axis/components/clientReport/StrategyCard.js +39 -23
  15. package/lib/tax-axis/components/clientReport/TaxAxisClientReport.d.ts +5 -2
  16. package/lib/tax-axis/components/clientReport/TaxAxisClientReport.js +9 -7
  17. package/lib/tax-axis/components/dashboard/DashboardActions.js +6 -5
  18. package/lib/tax-axis/components/dashboard/DashboardSummary.d.ts +6 -1
  19. package/lib/tax-axis/components/dashboard/DashboardSummary.js +19 -10
  20. package/lib/tax-axis/components/dashboard/StrategyDetailPanel.d.ts +1 -1
  21. package/lib/tax-axis/components/dashboard/StrategyDetailPanel.js +122 -95
  22. package/lib/tax-axis/components/dashboard/TaxAxisDashboard.d.ts +58 -4
  23. package/lib/tax-axis/components/dashboard/TaxAxisDashboard.js +375 -56
  24. package/lib/tax-axis/components/documents/DocumentCard.d.ts +6 -3
  25. package/lib/tax-axis/components/documents/DocumentCard.js +72 -15
  26. package/lib/tax-axis/components/documents/DocumentReviewModal.d.ts +3 -2
  27. package/lib/tax-axis/components/documents/DocumentReviewModal.js +109 -295
  28. package/lib/tax-axis/components/documents/DocumentTier.d.ts +5 -4
  29. package/lib/tax-axis/components/documents/DocumentTier.js +2 -2
  30. package/lib/tax-axis/components/documents/TaxAxisDocuments.d.ts +28 -8
  31. package/lib/tax-axis/components/documents/TaxAxisDocuments.js +335 -172
  32. package/lib/tax-axis/components/documents/qbo/QboAvailableReportsModal.d.ts +13 -0
  33. package/lib/tax-axis/components/documents/qbo/QboAvailableReportsModal.js +180 -0
  34. package/lib/tax-axis/components/documents/qbo/QboClientSelectorModal.d.ts +10 -0
  35. package/lib/tax-axis/components/documents/qbo/QboClientSelectorModal.js +155 -0
  36. package/lib/tax-axis/components/documents/qbo/QboConnectBanner.d.ts +9 -0
  37. package/lib/tax-axis/components/documents/qbo/QboConnectBanner.js +55 -0
  38. package/lib/tax-axis/components/documents/qbo/QboDocumentMappingModal.d.ts +10 -0
  39. package/lib/tax-axis/components/documents/qbo/QboDocumentMappingModal.js +202 -0
  40. package/lib/tax-axis/components/documents/qbo/QboImportingModal.d.ts +8 -0
  41. package/lib/tax-axis/components/documents/qbo/QboImportingModal.js +75 -0
  42. package/lib/tax-axis/components/documents/qbo/QboPermissionsModal.d.ts +8 -0
  43. package/lib/tax-axis/components/documents/qbo/QboPermissionsModal.js +126 -0
  44. package/lib/tax-axis/components/documents/qbo/index.d.ts +8 -0
  45. package/lib/tax-axis/components/documents/qbo/index.js +17 -0
  46. package/lib/tax-axis/components/documents/qbo/qboConstants.d.ts +24 -0
  47. package/lib/tax-axis/components/documents/qbo/qboConstants.js +71 -0
  48. package/lib/tax-axis/components/documents/qbo/types.d.ts +43 -0
  49. package/lib/tax-axis/components/documents/qbo/types.js +3 -0
  50. package/lib/tax-axis/components/documents/qbo/useQboFlow.d.ts +19 -0
  51. package/lib/tax-axis/components/documents/qbo/useQboFlow.js +207 -0
  52. package/lib/tax-axis/components/intake/ClientParametersSection.js +11 -30
  53. package/lib/tax-axis/components/intake/CpaIntakeQuestionsSection.js +3 -3
  54. package/lib/tax-axis/components/intake/IntakeCtaCards.d.ts +1 -2
  55. package/lib/tax-axis/components/intake/IntakeCtaCards.js +6 -13
  56. package/lib/tax-axis/components/intake/RefineAnalysisSection.js +7 -7
  57. package/lib/tax-axis/components/intake/StrategyRadar.js +25 -4
  58. package/lib/tax-axis/components/intake/TaxAxisIntake.js +7 -95
  59. package/lib/tax-axis/components/intake/intakeSchema.d.ts +3 -3
  60. package/lib/tax-axis/components/intake/intakeSchema.js +4 -4
  61. package/lib/tax-axis/components/preparerWorkpaper/TaxAxisPreparerWorkpaper.d.ts +23 -4
  62. package/lib/tax-axis/components/preparerWorkpaper/TaxAxisPreparerWorkpaper.js +15 -4
  63. package/lib/tax-axis/components/processing/TaxAxisProcessing.d.ts +2 -1
  64. package/lib/tax-axis/components/processing/TaxAxisProcessing.js +102 -31
  65. package/lib/tax-axis/components/prospectReport/ProspectPrintView.js +0 -2
  66. package/lib/tax-axis/components/prospectReport/ProspectStrategyCard.d.ts +1 -8
  67. package/lib/tax-axis/components/prospectReport/ProspectStrategyCard.js +5 -5
  68. package/lib/tax-axis/components/prospectReport/TaxAxisProspectReport.d.ts +1 -27
  69. package/lib/tax-axis/components/prospectReport/TaxAxisProspectReport.js +25 -43
  70. package/lib/tax-axis/index.d.ts +3 -1
  71. package/lib/tax-axis/index.js +4 -3
  72. package/lib/tax-axis/lib/adapters/useEngineOutput.d.ts +60 -21
  73. package/lib/tax-axis/lib/adapters/useEngineOutput.js +51 -7
  74. package/lib/tax-axis/lib/compute/index.js +6 -0
  75. package/lib/tax-axis/lib/data/documents.d.ts +3 -2
  76. package/lib/tax-axis/lib/data/documents.js +225 -25
  77. package/lib/tax-axis/lib/data/strategies.js +53 -55
  78. package/lib/tax-axis/lib/documentFieldCatalog.d.ts +5 -10
  79. package/lib/tax-axis/lib/documentFieldCatalog.js +193 -8
  80. package/lib/tax-axis/lib/types/index.d.ts +14 -2
  81. package/package.json +1 -1
  82. package/lib/README.md +0 -2
  83. package/lib/package.json +0 -68
@@ -1,11 +1,196 @@
1
1
  "use strict";
2
- // documentFieldCatalog minimal stub to unblock builds.
3
- // TODO: populate with real per-documentType section/field metadata once parsing is stable.
2
+ // Catalog that maps canonical documentType keys to their review sections and field metadata.
3
+ // Used by DocumentReviewModal to render structured field review UI from parsedData.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.DOCUMENT_FIELD_CATALOG = void 0;
6
- /**
7
- * Keyed by documentType string (e.g. "1040", "W2", "1099").
8
- * Empty for now — DocumentReviewModal falls back to flat field rendering
9
- * when the documentType has no catalog entry (line 84-96).
10
- */
11
- exports.DOCUMENT_FIELD_CATALOG = {};
6
+ exports.DOCUMENT_FIELD_CATALOG = {
7
+ federal_tax_return: {
8
+ sections: [
9
+ {
10
+ head: "Income",
11
+ fields: ["total_income", "wages", "business_income", "capital_gains", "other_income"],
12
+ },
13
+ {
14
+ head: "Deductions",
15
+ fields: ["total_deductions", "qbi_deduction", "standard_deduction", "itemized_deductions"],
16
+ },
17
+ {
18
+ head: "Tax",
19
+ fields: ["taxable_income", "total_tax", "self_employment_tax", "effective_rate"],
20
+ },
21
+ ],
22
+ fields: {
23
+ total_income: { label: "Total Income", sourceRef: "Form 1040 Line 9" },
24
+ wages: { label: "Wages & Salary", sourceRef: "Form 1040 Line 1a" },
25
+ business_income: { label: "Business Income (Schedule C)", sourceRef: "Form 1040 Line 8" },
26
+ capital_gains: { label: "Capital Gains", sourceRef: "Form 1040 Line 7" },
27
+ other_income: { label: "Other Income", sourceRef: "Form 1040 Line 8z" },
28
+ total_deductions: { label: "Total Deductions", sourceRef: "Form 1040 Line 12" },
29
+ qbi_deduction: { label: "QBI Deduction (§199A)", sourceRef: "Form 1040 Line 13" },
30
+ standard_deduction: { label: "Standard Deduction", sourceRef: "Form 1040 Line 12a" },
31
+ itemized_deductions: { label: "Itemized Deductions", sourceRef: "Schedule A Total" },
32
+ taxable_income: { label: "Taxable Income", sourceRef: "Form 1040 Line 15" },
33
+ total_tax: { label: "Total Tax", sourceRef: "Form 1040 Line 24" },
34
+ self_employment_tax: { label: "Self-Employment Tax", sourceRef: "Schedule SE" },
35
+ effective_rate: { label: "Effective Tax Rate" },
36
+ },
37
+ },
38
+ profit_loss: {
39
+ sections: [
40
+ {
41
+ head: "Revenue",
42
+ fields: ["total_revenue", "gross_revenue", "cost_of_goods_sold", "gross_profit"],
43
+ },
44
+ {
45
+ head: "Operating Expenses",
46
+ fields: ["total_expenses", "payroll_expense", "rent_expense", "depreciation", "other_expenses"],
47
+ },
48
+ {
49
+ head: "Net Income",
50
+ fields: ["net_income", "net_margin"],
51
+ },
52
+ ],
53
+ fields: {
54
+ total_revenue: { label: "Total Revenue" },
55
+ gross_revenue: { label: "Gross Revenue" },
56
+ cost_of_goods_sold: { label: "Cost of Goods Sold (COGS)" },
57
+ gross_profit: { label: "Gross Profit" },
58
+ total_expenses: { label: "Total Operating Expenses" },
59
+ payroll_expense: { label: "Payroll & Compensation" },
60
+ rent_expense: { label: "Rent / Lease" },
61
+ depreciation: { label: "Depreciation & Amortization" },
62
+ other_expenses: { label: "Other Expenses" },
63
+ net_income: { label: "Net Income" },
64
+ net_margin: { label: "Net Profit Margin" },
65
+ },
66
+ },
67
+ balance_sheet: {
68
+ sections: [
69
+ {
70
+ head: "Assets",
71
+ fields: ["total_assets", "current_assets", "cash", "accounts_receivable", "fixed_assets"],
72
+ },
73
+ {
74
+ head: "Liabilities",
75
+ fields: ["total_liabilities", "current_liabilities", "accounts_payable", "long_term_debt"],
76
+ },
77
+ {
78
+ head: "Equity",
79
+ fields: ["total_equity", "retained_earnings"],
80
+ },
81
+ ],
82
+ fields: {
83
+ total_assets: { label: "Total Assets" },
84
+ current_assets: { label: "Current Assets" },
85
+ cash: { label: "Cash & Equivalents" },
86
+ accounts_receivable: { label: "Accounts Receivable" },
87
+ fixed_assets: { label: "Fixed Assets (Net)" },
88
+ total_liabilities: { label: "Total Liabilities" },
89
+ current_liabilities: { label: "Current Liabilities" },
90
+ accounts_payable: { label: "Accounts Payable" },
91
+ long_term_debt: { label: "Long-Term Debt" },
92
+ total_equity: { label: "Total Equity" },
93
+ retained_earnings: { label: "Retained Earnings" },
94
+ },
95
+ },
96
+ schedule_k1_s_corp: {
97
+ sections: [
98
+ {
99
+ head: "Ordinary Income",
100
+ fields: ["ordinary_income", "net_rental_income", "interest_income", "dividend_income"],
101
+ },
102
+ {
103
+ head: "Deductions & Credits",
104
+ fields: ["section_179_deduction", "charitable_contributions", "credits"],
105
+ },
106
+ ],
107
+ fields: {
108
+ ordinary_income: { label: "Ordinary Business Income (Loss)", sourceRef: "K-1 Box 1" },
109
+ net_rental_income: { label: "Net Rental Real Estate Income", sourceRef: "K-1 Box 2" },
110
+ interest_income: { label: "Interest Income", sourceRef: "K-1 Box 4" },
111
+ dividend_income: { label: "Ordinary Dividends", sourceRef: "K-1 Box 5a" },
112
+ section_179_deduction: { label: "Section 179 Deduction", sourceRef: "K-1 Box 11" },
113
+ charitable_contributions: { label: "Charitable Contributions", sourceRef: "K-1 Box 12" },
114
+ credits: { label: "Credits", sourceRef: "K-1 Box 13" },
115
+ },
116
+ },
117
+ schedule_k1_partnership: {
118
+ sections: [
119
+ {
120
+ head: "Ordinary Income",
121
+ fields: ["ordinary_income", "net_rental_income", "guaranteed_payments", "interest_income"],
122
+ },
123
+ {
124
+ head: "Deductions & Credits",
125
+ fields: ["section_179_deduction", "charitable_contributions", "self_employment_earnings"],
126
+ },
127
+ ],
128
+ fields: {
129
+ ordinary_income: { label: "Ordinary Business Income (Loss)", sourceRef: "K-1 Box 1" },
130
+ net_rental_income: { label: "Net Rental Real Estate Income", sourceRef: "K-1 Box 2" },
131
+ guaranteed_payments: { label: "Guaranteed Payments", sourceRef: "K-1 Box 4" },
132
+ interest_income: { label: "Interest Income", sourceRef: "K-1 Box 5" },
133
+ section_179_deduction: { label: "Section 179 Deduction", sourceRef: "K-1 Box 12" },
134
+ charitable_contributions: { label: "Charitable Contributions", sourceRef: "K-1 Box 13" },
135
+ self_employment_earnings: { label: "Self-Employment Earnings", sourceRef: "K-1 Box 14" },
136
+ },
137
+ },
138
+ fixed_asset_schedule: {
139
+ sections: [
140
+ {
141
+ head: "Asset Summary",
142
+ fields: ["total_asset_cost", "total_accumulated_depreciation", "total_net_book_value", "bonus_depreciation_taken", "section_179_taken"],
143
+ },
144
+ ],
145
+ fields: {
146
+ total_asset_cost: { label: "Total Asset Cost Basis" },
147
+ total_accumulated_depreciation: { label: "Total Accumulated Depreciation" },
148
+ total_net_book_value: { label: "Total Net Book Value" },
149
+ bonus_depreciation_taken: { label: "Bonus Depreciation Taken" },
150
+ section_179_taken: { label: "Section 179 Deduction Taken" },
151
+ },
152
+ },
153
+ payroll_records: {
154
+ sections: [
155
+ {
156
+ head: "Payroll Summary",
157
+ fields: ["total_payroll", "owner_compensation", "employee_count", "total_wages", "employer_taxes"],
158
+ },
159
+ ],
160
+ fields: {
161
+ total_payroll: { label: "Total Payroll Cost" },
162
+ owner_compensation: { label: "Owner / Officer Compensation" },
163
+ employee_count: { label: "Employee Count" },
164
+ total_wages: { label: "Total Wages Paid" },
165
+ employer_taxes: { label: "Employer Payroll Taxes" },
166
+ },
167
+ },
168
+ form_1099_nec_summary: {
169
+ sections: [
170
+ {
171
+ head: "1099-NEC Summary",
172
+ fields: ["total_nec_payments", "contractor_count", "largest_single_payment"],
173
+ },
174
+ ],
175
+ fields: {
176
+ total_nec_payments: { label: "Total NEC Payments" },
177
+ contractor_count: { label: "Contractor Count" },
178
+ largest_single_payment: { label: "Largest Single Payment" },
179
+ },
180
+ },
181
+ state_tax_return: {
182
+ sections: [
183
+ {
184
+ head: "State Tax",
185
+ fields: ["state", "state_taxable_income", "state_tax_owed", "state_effective_rate", "state_credits"],
186
+ },
187
+ ],
188
+ fields: {
189
+ state: { label: "State" },
190
+ state_taxable_income: { label: "State Taxable Income" },
191
+ state_tax_owed: { label: "State Tax Owed" },
192
+ state_effective_rate: { label: "State Effective Rate" },
193
+ state_credits: { label: "State Credits Applied" },
194
+ },
195
+ },
196
+ };
@@ -5,13 +5,18 @@ export type FilingStatus = "Single" | "MFJ" | "MFS" | "Head of Household" | "QSS
5
5
  export type PriorityTier = "HIGH" | "QUICK WIN" | "MEDIUM" | "LOW" | "NOT RECOMMENDED";
6
6
  export type PositionStrength = "SUBSTANTIAL_AUTHORITY" | "REASONABLE_BASIS" | "NEEDS_DISCLOSURE";
7
7
  export type ConfidenceTier = "1-YR-DATA" | "2-YR-DATA" | "4-YR-DATA" | "CONFIRMED";
8
- export type StrategyCategory = "entity" | "depreciation" | "income" | "credits" | "retirement" | "benefits" | "deductions" | "investment" | "accounting" | "obbba_new" | "state";
8
+ export type StrategyCategory = "entity" | "depreciation" | "income" | "credits" | "retirement" | "benefits" | "deductions" | "investment" | "accounting" | "obbba_new" | "state" | "deferral" | "exclusions";
9
9
  export interface StrategySource {
10
10
  doc: string;
11
11
  line: string;
12
12
  value: string;
13
13
  field: string;
14
14
  }
15
+ export interface SourceDocumentRef {
16
+ field_label: string;
17
+ value_display: string;
18
+ source_hint: string;
19
+ }
15
20
  export interface StrategyTraceStep {
16
21
  n: number;
17
22
  step: string;
@@ -38,14 +43,18 @@ export interface Strategy {
38
43
  needsOwnerComp?: boolean;
39
44
  clientBrief?: string;
40
45
  action?: string;
46
+ abstract?: string;
41
47
  authority?: string;
42
48
  forms?: string;
43
49
  warning?: string | null;
44
- abstract?: string;
45
50
  sources?: StrategySource[];
46
51
  trace?: StrategyTraceStep[];
47
52
  cost?: string;
48
53
  timelineBucket?: string;
54
+ sourceDocuments?: SourceDocumentRef[];
55
+ quickWin?: boolean;
56
+ positionStrength?: string;
57
+ specialistNote?: string;
49
58
  }
50
59
  export interface ClientProfile {
51
60
  bizName: string;
@@ -153,12 +162,15 @@ export interface ProspectStrategyMeta {
153
162
  typicalRange: string;
154
163
  prospectNote: string;
155
164
  }
165
+ export type DocTier = "required" | "recommended" | "conditional";
156
166
  export interface DocSpec {
157
167
  id: string;
168
+ documentType: string;
158
169
  name: string;
159
170
  accept: string[];
160
171
  strategies: string[];
161
172
  required: boolean | "optional" | "conditional";
173
+ tier: DocTier;
162
174
  help: string;
163
175
  }
164
176
  export interface SidebarLookupEntry {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paro.io/expert-shared-components",
3
- "version": "1.14.66",
3
+ "version": "1.14.68",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
package/lib/README.md DELETED
@@ -1,2 +0,0 @@
1
- # expert-shared-components
2
- Repository to store Components shared between the Expert Apps and Internal Apps
package/lib/package.json DELETED
@@ -1,68 +0,0 @@
1
- {
2
- "name": "@paro.io/expert-shared-components",
3
- "version": "1.14.48",
4
- "description": "",
5
- "main": "lib/index.js",
6
- "scripts": {
7
- "build": "tsc",
8
- "build:watch": "tsc --watch",
9
- "prepare": "yarn build",
10
- "test": "yarn test:build",
11
- "test:build": "yarn build",
12
- "clean": "yarn -rf lib",
13
- "predeploy": "tsc && cp package.json README.md ./lib",
14
- "link-local": "yarn link && cd node_modules/react && yarn link && cd ../react-dom && yarn link",
15
- "unlink-local": "yarn unlink && cd node_modules/react && yarn unlink && cd ../react-dom && yarn unlink"
16
- },
17
- "repository": "https://github.com/paroadmin/expert-shared-components.git",
18
- "keywords": [
19
- "react",
20
- "components",
21
- "shared"
22
- ],
23
- "author": "apande@paro.io",
24
- "license": "MIT",
25
- "dependencies": {
26
- "@date-io/dayjs": "1.x",
27
- "@fortawesome/fontawesome-svg-core": "^6.6.0",
28
- "@fortawesome/free-solid-svg-icons": "^6.6.0",
29
- "@fortawesome/react-fontawesome": "^0.2.2",
30
- "@hookform/resolvers": "3.3.4",
31
- "@material-ui/core": "^4.11.0",
32
- "@material-ui/icons": "^4.11.3",
33
- "@material-ui/lab": "^4.0.0-alpha.61",
34
- "@material-ui/pickers": "^3.3.11",
35
- "@paro.io/base-icons": "^1.0.4",
36
- "@paro.io/base-ui": "^1.8.3",
37
- "@types/react-input-mask": "^3.0.5",
38
- "dayjs": "^1.10.7",
39
- "lodash": "^4.17.21",
40
- "react": "^18.2.0",
41
- "react-copy-to-clipboard": "^5.0.4",
42
- "react-datepicker": "^4.6.0",
43
- "react-dom": "^17.0.2",
44
- "react-hook-form": "7.51.1",
45
- "react-hot-toast": "^2.4.1",
46
- "react-input-mask": "^3.0.0-alpha.2",
47
- "styled-components": "^5.3.3",
48
- "uuid": "8.3.2",
49
- "yup": "^0.32.11"
50
- },
51
- "devDependencies": {
52
- "@types/lodash": "^4.14.170",
53
- "@types/react": "18.3.12",
54
- "@types/react-copy-to-clipboard": "^5.0.2",
55
- "@types/react-datepicker": "^4.19.6",
56
- "@types/react-dom": "^18.2.22",
57
- "@types/styled-components": "^5.1.22",
58
- "@types/uuid": "^10.0.0",
59
- "@types/yup": "^0.29.13",
60
- "typescript": "^5.3.3"
61
- },
62
- "files": [
63
- "lib/**/*"
64
- ],
65
- "directories": {
66
- "lib": "lib"
67
- }
68
- }