@gusto/embedded-react-sdk 0.34.0 → 0.35.0-rc.1
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 +38 -0
- package/dist/components/Base/Base.d.ts +6 -2
- package/dist/components/Base/Base.js +105 -59
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Base/useBase.d.ts +1 -0
- package/dist/components/Base/useBase.js.map +1 -1
- package/dist/components/Base/useBaseSubmit.d.ts +1 -1
- package/dist/components/Base/useBaseSubmit.js +60 -33
- package/dist/components/Base/useBaseSubmit.js.map +1 -1
- package/dist/components/Common/HamburgerMenu/HamburgerMenu.d.ts +1 -1
- package/dist/components/Common/HamburgerMenu/HamburgerMenu.js +15 -13
- package/dist/components/Common/HamburgerMenu/HamburgerMenu.js.map +1 -1
- package/dist/components/Common/HamburgerMenu/HamburgerMenuTypes.d.ts +1 -0
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +1 -1
- package/dist/components/Common/UI/Menu/Menu.js +26 -25
- package/dist/components/Common/UI/Menu/Menu.js.map +1 -1
- package/dist/components/Common/UI/Menu/Menu.module.scss.js +7 -7
- package/dist/components/Common/UI/Menu/MenuTypes.d.ts +5 -0
- package/dist/components/Common/UI/Menu/MenuTypes.js +4 -3
- package/dist/components/Common/UI/Menu/MenuTypes.js.map +1 -1
- package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +12 -12
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Form.js +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +5 -6
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +6 -7
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +3 -4
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
- package/dist/components/Company/PaySchedule/usePaySchedule.js +5 -6
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +1 -1
- package/dist/components/Contractor/Address/useAddress.js +5 -6
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +2 -2
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +119 -113
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
- package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
- package/dist/components/Employee/Compensation/Edit.js +70 -70
- package/dist/components/Employee/Compensation/Edit.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +9 -10
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +10 -11
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +10 -11
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +3 -4
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +18 -18
- package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +7 -7
- package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js +5 -5
- package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js +8 -8
- package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +3 -4
- package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalForm.js +7 -7
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +3 -4
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +2 -2
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +8 -8
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +5 -6
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.js +1 -1
- package/dist/components/Employee/Profile/HomeAddress.js +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +2 -2
- package/dist/components/Employee/Profile/useProfile.js +3 -4
- package/dist/components/Employee/Profile/useProfile.js.map +1 -1
- package/dist/components/Employee/StateTaxes/StateTaxes.js +69 -61
- package/dist/components/Employee/StateTaxes/StateTaxes.js.map +1 -1
- package/dist/components/Employee/StateTaxes/useStateTaxes.js +3 -4
- package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
- package/dist/components/Employee/Taxes/FederalForm.js +7 -7
- package/dist/components/Employee/Taxes/useTaxes.js +3 -4
- package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +10 -10
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +9 -9
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.d.ts +2 -0
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +101 -0
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -0
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js +16 -0
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js.map +1 -0
- package/dist/components/Payroll/GrossUpModal/GrossUpModalTypes.d.ts +7 -0
- package/dist/components/Payroll/GrossUpModal/index.d.ts +3 -0
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +86 -67
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +83 -49
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +6 -0
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +1 -1
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +1 -1
- package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +102 -0
- package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -0
- package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.module.scss.js +14 -0
- package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.module.scss.js.map +1 -0
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.js +52 -0
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.js.map +1 -0
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.module.scss.js +16 -0
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.module.scss.js.map +1 -0
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.d.ts +12 -2
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.js +15 -0
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.js.map +1 -0
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/index.d.ts +2 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +212 -120
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +76 -64
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.d.ts +2 -0
- package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js +11 -0
- package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js.map +1 -0
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +67 -57
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +36 -36
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +6 -6
- package/dist/components/Payroll/usePreparedPayrollData.js +44 -44
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +2 -0
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +58 -39
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/ObservabilityProvider/ObservabilityContext.d.ts +5 -0
- package/dist/contexts/ObservabilityProvider/ObservabilityContext.js +6 -0
- package/dist/contexts/ObservabilityProvider/ObservabilityContext.js.map +1 -0
- package/dist/contexts/ObservabilityProvider/ObservabilityProvider.d.ts +7 -0
- package/dist/contexts/ObservabilityProvider/ObservabilityProvider.js +11 -0
- package/dist/contexts/ObservabilityProvider/ObservabilityProvider.js.map +1 -0
- package/dist/contexts/ObservabilityProvider/index.d.ts +5 -0
- package/dist/contexts/ObservabilityProvider/observabilityUtils.d.ts +5 -0
- package/dist/contexts/ObservabilityProvider/observabilityUtils.js +45 -0
- package/dist/contexts/ObservabilityProvider/observabilityUtils.js.map +1 -0
- package/dist/contexts/ObservabilityProvider/sanitization.d.ts +19 -0
- package/dist/contexts/ObservabilityProvider/sanitization.js +95 -0
- package/dist/contexts/ObservabilityProvider/sanitization.js.map +1 -0
- package/dist/contexts/ObservabilityProvider/sanitization.test.d.ts +1 -0
- package/dist/contexts/ObservabilityProvider/useObservability.d.ts +2 -0
- package/dist/contexts/ObservabilityProvider/useObservability.js +11 -0
- package/dist/contexts/ObservabilityProvider/useObservability.js.map +1 -0
- package/dist/contexts/ObservabilityProvider/useSanitizedObservability.d.ts +8 -0
- package/dist/contexts/ObservabilityProvider/useSanitizedObservability.js +28 -0
- package/dist/contexts/ObservabilityProvider/useSanitizedObservability.js.map +1 -0
- package/dist/contexts/index.d.ts +2 -0
- package/dist/helpers/formattedStrings.js +12 -13
- package/dist/helpers/formattedStrings.js.map +1 -1
- package/dist/helpers/rem.d.ts +7 -3
- package/dist/helpers/rem.js +14 -10
- package/dist/helpers/rem.js.map +1 -1
- package/dist/helpers/rem.test.d.ts +1 -0
- package/dist/helpers/retryAsync.d.ts +7 -0
- package/dist/helpers/retryAsync.js +18 -0
- package/dist/helpers/retryAsync.js.map +1 -0
- package/dist/i18n/I18n.js +15 -15
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Company.PaySchedule.json.js +1 -1
- package/dist/i18n/en/Payroll.GrossUpModal.json.js +24 -0
- package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -0
- package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js +13 -11
- package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -13
- package/dist/index.js.map +1 -1
- package/dist/shared/constants.d.ts +5 -0
- package/dist/shared/constants.js +11 -8
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +26 -1
- package/dist/types/observability.d.ts +145 -0
- package/docs/reference/endpoint-inventory.json +10 -1
- package/package.json +21 -21
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Observability hook types for error tracking and performance metrics
|
|
3
|
+
*/
|
|
4
|
+
export type ObservabilityErrorType = 'boundary_error' | 'validation_error' | 'internal_error' | 'api_error';
|
|
5
|
+
export type ObservabilityMetricUnit = 'ms' | 'count' | 'bytes' | 'percent';
|
|
6
|
+
export interface ObservabilityErrorContext {
|
|
7
|
+
/** Name of the component where error occurred */
|
|
8
|
+
componentName?: string;
|
|
9
|
+
/** Props passed to the component (sanitized, no sensitive data) */
|
|
10
|
+
componentProps?: Record<string, unknown>;
|
|
11
|
+
/** For validation errors, the schema that failed */
|
|
12
|
+
validationSchema?: string;
|
|
13
|
+
/** React component stack trace */
|
|
14
|
+
componentStack?: string;
|
|
15
|
+
/** Operation ID for API-related errors */
|
|
16
|
+
operationId?: string;
|
|
17
|
+
/** HTTP status code for API errors */
|
|
18
|
+
statusCode?: number;
|
|
19
|
+
/** Request details for API errors */
|
|
20
|
+
request?: {
|
|
21
|
+
url: string;
|
|
22
|
+
method: string;
|
|
23
|
+
};
|
|
24
|
+
/** Any additional context */
|
|
25
|
+
metadata?: Record<string, unknown>;
|
|
26
|
+
}
|
|
27
|
+
export interface ObservabilityError {
|
|
28
|
+
/** Type of error that occurred */
|
|
29
|
+
type: ObservabilityErrorType;
|
|
30
|
+
/** Human-readable error message */
|
|
31
|
+
message: string;
|
|
32
|
+
/** Error stack trace if available */
|
|
33
|
+
stack?: string;
|
|
34
|
+
/** Context about where/how the error occurred */
|
|
35
|
+
context: ObservabilityErrorContext;
|
|
36
|
+
/**
|
|
37
|
+
* The original error object (may be undefined when sanitization.includeOriginalError is false)
|
|
38
|
+
* Default sanitization removes this to prevent PII leakage
|
|
39
|
+
*/
|
|
40
|
+
originalError?: unknown;
|
|
41
|
+
/** When the error occurred (Unix timestamp in milliseconds) */
|
|
42
|
+
timestamp: number;
|
|
43
|
+
}
|
|
44
|
+
export interface ObservabilityMetric {
|
|
45
|
+
/** Metric name (e.g., 'sdk.form.submit_duration', 'sdk.component.loading_duration') */
|
|
46
|
+
name: string;
|
|
47
|
+
/** Metric value */
|
|
48
|
+
value: number;
|
|
49
|
+
/** Metric unit */
|
|
50
|
+
unit?: ObservabilityMetricUnit;
|
|
51
|
+
/** Tags for filtering/grouping */
|
|
52
|
+
tags?: Record<string, string>;
|
|
53
|
+
/** When the metric was recorded (Unix timestamp in milliseconds) */
|
|
54
|
+
timestamp: number;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Configuration for data sanitization in observability hooks
|
|
58
|
+
*/
|
|
59
|
+
export interface SanitizationConfig {
|
|
60
|
+
/**
|
|
61
|
+
* Whether to sanitize error data. Default: true
|
|
62
|
+
*/
|
|
63
|
+
enabled?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Whether to include the original error object. Default: false
|
|
66
|
+
* WARNING: Original errors may contain sensitive data from form inputs or API responses
|
|
67
|
+
*/
|
|
68
|
+
includeOriginalError?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Custom sanitization function for errors
|
|
71
|
+
*/
|
|
72
|
+
customErrorSanitizer?: (error: ObservabilityError) => ObservabilityError;
|
|
73
|
+
/**
|
|
74
|
+
* Custom sanitization function for metrics
|
|
75
|
+
*/
|
|
76
|
+
customMetricSanitizer?: (metric: ObservabilityMetric) => ObservabilityMetric;
|
|
77
|
+
/**
|
|
78
|
+
* Additional field names to treat as sensitive (case-insensitive)
|
|
79
|
+
*/
|
|
80
|
+
additionalSensitiveFields?: string[];
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Observability hook interface for SDK consumers to implement
|
|
84
|
+
*
|
|
85
|
+
* This hook enables error tracking and performance monitoring for the SDK.
|
|
86
|
+
* Errors caught by error boundaries and validation failures will be reported through onError.
|
|
87
|
+
* Performance metrics for forms, components, and flows will be reported through onMetric.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```tsx
|
|
91
|
+
* import * as Sentry from '@sentry/react'
|
|
92
|
+
* import { GustoProvider } from '@gusto/embedded-react-sdk'
|
|
93
|
+
*
|
|
94
|
+
* <GustoProvider
|
|
95
|
+
* config={{
|
|
96
|
+
* baseUrl: '/api/',
|
|
97
|
+
* observability: {
|
|
98
|
+
* onError: (error) => {
|
|
99
|
+
* // Create Error from sanitized data (originalError is undefined by default)
|
|
100
|
+
* const sentryError = new Error(error.message)
|
|
101
|
+
* sentryError.name = error.type
|
|
102
|
+
* if (error.stack) {
|
|
103
|
+
* sentryError.stack = error.stack
|
|
104
|
+
* }
|
|
105
|
+
*
|
|
106
|
+
* Sentry.captureException(sentryError, {
|
|
107
|
+
* level: error.type === 'validation_error' ? 'warning' : 'error',
|
|
108
|
+
* tags: {
|
|
109
|
+
* error_type: error.type,
|
|
110
|
+
* component: error.context.componentName,
|
|
111
|
+
* },
|
|
112
|
+
* })
|
|
113
|
+
* },
|
|
114
|
+
* onMetric: (metric) => {
|
|
115
|
+
* // Send to your metrics service
|
|
116
|
+
* console.log(`[Metric] ${metric.name}: ${metric.value}${metric.unit}`)
|
|
117
|
+
* },
|
|
118
|
+
* sanitization: {
|
|
119
|
+
* enabled: true,
|
|
120
|
+
* includeOriginalError: false, // Default: originalError will be undefined
|
|
121
|
+
* }
|
|
122
|
+
* }
|
|
123
|
+
* }}
|
|
124
|
+
* >
|
|
125
|
+
* <YourApp />
|
|
126
|
+
* </GustoProvider>
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
export interface ObservabilityHook {
|
|
130
|
+
/**
|
|
131
|
+
* Called when an error is caught by error boundaries or validation fails
|
|
132
|
+
* These are errors that prevent a component from rendering or operating correctly
|
|
133
|
+
*/
|
|
134
|
+
onError?: (error: ObservabilityError) => void;
|
|
135
|
+
/**
|
|
136
|
+
* Called to track performance metrics for component operations
|
|
137
|
+
* Optional - can be used for tracking render times, flow completions, etc.
|
|
138
|
+
*/
|
|
139
|
+
onMetric?: (metric: ObservabilityMetric) => void;
|
|
140
|
+
/**
|
|
141
|
+
* Configuration for sanitizing data before sending to observability tools
|
|
142
|
+
* Default: { enabled: true, includeOriginalError: false }
|
|
143
|
+
*/
|
|
144
|
+
sanitization?: SanitizationConfig;
|
|
145
|
+
}
|
|
@@ -819,6 +819,10 @@
|
|
|
819
819
|
"method": "PUT",
|
|
820
820
|
"path": "/v1/companies/:companyId/payrolls/:payrollId"
|
|
821
821
|
},
|
|
822
|
+
{
|
|
823
|
+
"method": "POST",
|
|
824
|
+
"path": "/v1/payrolls/:payrollUuid/gross_up"
|
|
825
|
+
},
|
|
822
826
|
{
|
|
823
827
|
"method": "GET",
|
|
824
828
|
"path": "/v1/companies/:companyUuid/payrolls/blockers"
|
|
@@ -840,7 +844,8 @@
|
|
|
840
844
|
"companyId",
|
|
841
845
|
"companyUuid",
|
|
842
846
|
"payScheduleId",
|
|
843
|
-
"payrollId"
|
|
847
|
+
"payrollId",
|
|
848
|
+
"payrollUuid"
|
|
844
849
|
]
|
|
845
850
|
},
|
|
846
851
|
"Payroll.PayrollEditEmployee": {
|
|
@@ -1651,6 +1656,10 @@
|
|
|
1651
1656
|
"method": "PUT",
|
|
1652
1657
|
"path": "/v1/companies/:companyId/payrolls/:payrollId"
|
|
1653
1658
|
},
|
|
1659
|
+
{
|
|
1660
|
+
"method": "POST",
|
|
1661
|
+
"path": "/v1/payrolls/:payrollUuid/gross_up"
|
|
1662
|
+
},
|
|
1654
1663
|
{
|
|
1655
1664
|
"method": "GET",
|
|
1656
1665
|
"path": "/v1/companies/:companyId/employees"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gusto/embedded-react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0-rc.1",
|
|
4
4
|
"homepage": "https://github.com/Gusto/embedded-react-sdk",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/Gusto/embedded-react-sdk/issues"
|
|
@@ -77,14 +77,14 @@
|
|
|
77
77
|
"build-storybook": "storybook build"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@commitlint/cli": "^20.4.
|
|
81
|
-
"@commitlint/config-conventional": "^20.
|
|
80
|
+
"@commitlint/cli": "^20.4.4",
|
|
81
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
82
82
|
"@eslint/js": "^9.39.2",
|
|
83
83
|
"@playwright/test": "^1.58.2",
|
|
84
|
-
"@storybook/addon-a11y": "^10.2.
|
|
85
|
-
"@storybook/addon-docs": "^10.2.
|
|
86
|
-
"@storybook/addon-onboarding": "^10.2.
|
|
87
|
-
"@storybook/react-vite": "^10.2.
|
|
84
|
+
"@storybook/addon-a11y": "^10.2.17",
|
|
85
|
+
"@storybook/addon-docs": "^10.2.17",
|
|
86
|
+
"@storybook/addon-onboarding": "^10.2.17",
|
|
87
|
+
"@storybook/react-vite": "^10.2.19",
|
|
88
88
|
"@storybook/test-runner": "^0.24.2",
|
|
89
89
|
"@testing-library/jest-dom": "^6.9.1",
|
|
90
90
|
"@testing-library/react": "^16.3.2",
|
|
@@ -94,37 +94,37 @@
|
|
|
94
94
|
"@types/js-yaml": "^4.0.9",
|
|
95
95
|
"@types/pngjs": "^6.0.5",
|
|
96
96
|
"@types/react": "^19.2.14",
|
|
97
|
-
"@vitejs/plugin-react-swc": "^3.
|
|
98
|
-
"@vitest/coverage-v8": "^
|
|
97
|
+
"@vitejs/plugin-react-swc": "^4.3.0",
|
|
98
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
99
99
|
"axe-core": "^4.11.1",
|
|
100
100
|
"dotenv": "^17.3.1",
|
|
101
|
-
"eslint": "^9.39.
|
|
101
|
+
"eslint": "^9.39.4",
|
|
102
102
|
"eslint-plugin-import": "^2.31.0",
|
|
103
103
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
104
104
|
"eslint-plugin-react": "^7.37.5",
|
|
105
105
|
"eslint-plugin-react-hooks": "^6.1.1",
|
|
106
106
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
107
|
-
"eslint-plugin-storybook": "^10.2.
|
|
107
|
+
"eslint-plugin-storybook": "^10.2.17",
|
|
108
108
|
"globals": "^17.4.0",
|
|
109
109
|
"husky": "^9.1.7",
|
|
110
110
|
"jest-axe": "^9.0.0",
|
|
111
111
|
"js-yaml": "^4.1.1",
|
|
112
112
|
"jsdom": "^26.1.0",
|
|
113
113
|
"jsdom-testing-mocks": "^1.16.0",
|
|
114
|
-
"lint-staged": "^16.
|
|
115
|
-
"msw": "^2.12.
|
|
114
|
+
"lint-staged": "^16.4.0",
|
|
115
|
+
"msw": "^2.12.11",
|
|
116
116
|
"npm-run-all": "^4.1.5",
|
|
117
117
|
"pixelmatch": "^7.1.0",
|
|
118
118
|
"pngjs": "^7.0.0",
|
|
119
119
|
"prettier": "^3.8.1",
|
|
120
120
|
"react-dnd": "^16.0.1",
|
|
121
121
|
"react-dnd-html5-backend": "^16.0.1",
|
|
122
|
-
"sass-embedded": "^1.
|
|
123
|
-
"storybook": "^10.2.
|
|
122
|
+
"sass-embedded": "^1.98.0",
|
|
123
|
+
"storybook": "^10.2.19",
|
|
124
124
|
"stylelint-config-standard": "^40.0.0",
|
|
125
125
|
"ts-morph": "^27.0.2",
|
|
126
126
|
"tsx": "^4.21.0",
|
|
127
|
-
"typescript-eslint": "^8.
|
|
127
|
+
"typescript-eslint": "^8.57.0",
|
|
128
128
|
"vite": "^6.4.1",
|
|
129
129
|
"vite-plugin-checker": "^0.12.0",
|
|
130
130
|
"vite-plugin-circular-dependency": "^0.5.0",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"vite-plugin-externalize-deps": "^0.10.0",
|
|
133
133
|
"vite-plugin-stylelint": "^6.0.4",
|
|
134
134
|
"vite-plugin-svgr": "^4.3.0",
|
|
135
|
-
"vitest": "^
|
|
135
|
+
"vitest": "^4.1.0"
|
|
136
136
|
},
|
|
137
137
|
"peerDependencies": {
|
|
138
138
|
"@tanstack/react-query": "^5",
|
|
@@ -148,13 +148,13 @@
|
|
|
148
148
|
"@internationalized/number": "^3.6.5",
|
|
149
149
|
"classnames": "^2.5.1",
|
|
150
150
|
"deepmerge": "^4.3.1",
|
|
151
|
-
"dompurify": "^3.3.
|
|
152
|
-
"i18next": "^25.8.
|
|
153
|
-
"react-aria": "^3.
|
|
151
|
+
"dompurify": "^3.3.3",
|
|
152
|
+
"i18next": "^25.8.18",
|
|
153
|
+
"react-aria": "^3.45.0",
|
|
154
154
|
"react-aria-components": "1.13.0",
|
|
155
155
|
"react-error-boundary": "^6.1.1",
|
|
156
156
|
"react-hook-form": "^7.71.2",
|
|
157
|
-
"react-i18next": "^16.5.
|
|
157
|
+
"react-i18next": "^16.5.8",
|
|
158
158
|
"react-robot": "^1.2.0",
|
|
159
159
|
"robot3": "^1.2.0",
|
|
160
160
|
"zod": "^4.3.6"
|