@gusto/embedded-react-sdk 0.54.1 → 0.55.0
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 +10 -0
- package/dist/components/Company/OnboardingFlow/OnboardingFlow.d.ts +1 -1
- package/dist/components/Company/OnboardingFlow/OnboardingFlow.js +21 -15
- package/dist/components/Company/OnboardingFlow/OnboardingFlow.js.map +1 -1
- package/dist/components/Company/OnboardingFlow/OnboardingFlowComponents.d.ts +8 -0
- package/dist/components/Company/OnboardingFlow/OnboardingFlowComponents.js +12 -5
- package/dist/components/Company/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.55.0](https://github.com/Gusto/embedded-react-sdk/compare/v0.54.1...v0.55.0) (2026-08-13)
|
|
4
|
+
|
|
5
|
+
### Features & Enhancements
|
|
6
|
+
|
|
7
|
+
- Add optional `signatoryId` prop to `Company.OnboardingFlow`, forwarded to the document-signing step. When set and matching the company's current signatory, the SDK pre-populates form fields and enables document signing. ([#2561](https://github.com/Gusto/embedded-react-sdk/issues/2561))
|
|
8
|
+
|
|
9
|
+
### Chores & Maintenance
|
|
10
|
+
|
|
11
|
+
- Bump dev dependencies (`release-it`, `@testing-library/jest-dom`)
|
|
12
|
+
|
|
3
13
|
## [0.54.1](https://github.com/Gusto/embedded-react-sdk/compare/v0.54.0...v0.54.1) (2026-08-13)
|
|
4
14
|
|
|
5
15
|
- drop Cursor cloud agent step from publish workflow ([#2530](https://github.com/Gusto/embedded-react-sdk/issues/2530)) ([9fe07f1](https://github.com/Gusto/embedded-react-sdk/commit/9fe07f1c9517f85cd45238e8e5fa6cef48309588))
|
|
@@ -61,4 +61,4 @@ export type { OnboardingFlowProps, OnboardingFlowDefaultValues } from './Onboard
|
|
|
61
61
|
* }
|
|
62
62
|
* ```
|
|
63
63
|
*/
|
|
64
|
-
export declare const OnboardingFlow: ({ companyId, onEvent, defaultValues }: OnboardingFlowProps) => import("react").JSX.Element;
|
|
64
|
+
export declare const OnboardingFlow: ({ companyId, signatoryId, onEvent, defaultValues, }: OnboardingFlowProps) => import("react").JSX.Element;
|
|
@@ -1,26 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createMachine as
|
|
3
|
-
import { useMemo as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { createMachine as p } from "robot3";
|
|
3
|
+
import { useMemo as c } from "react";
|
|
4
4
|
import { onboardingMachine as a } from "./onboardingStateMachine.js";
|
|
5
|
-
import { OnboardingOverviewContextual as
|
|
6
|
-
import { Flow as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
import { OnboardingOverviewContextual as f } from "./OnboardingFlowComponents.js";
|
|
6
|
+
import { Flow as w } from "../../Flow/Flow.js";
|
|
7
|
+
const M = ({
|
|
8
|
+
companyId: o,
|
|
9
|
+
signatoryId: r,
|
|
10
|
+
onEvent: i,
|
|
11
|
+
defaultValues: n
|
|
12
|
+
}) => {
|
|
13
|
+
const m = c(
|
|
14
|
+
() => p(
|
|
10
15
|
"overview",
|
|
11
16
|
a,
|
|
12
|
-
(
|
|
13
|
-
...
|
|
14
|
-
component:
|
|
17
|
+
(e) => ({
|
|
18
|
+
...e,
|
|
19
|
+
component: f,
|
|
15
20
|
companyId: o,
|
|
16
|
-
|
|
21
|
+
signatoryId: r,
|
|
22
|
+
defaultValues: n
|
|
17
23
|
})
|
|
18
24
|
),
|
|
19
|
-
[o, r]
|
|
25
|
+
[o, r, n]
|
|
20
26
|
);
|
|
21
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ t(w, { machine: m, onEvent: i });
|
|
22
28
|
};
|
|
23
29
|
export {
|
|
24
|
-
|
|
30
|
+
M as OnboardingFlow
|
|
25
31
|
};
|
|
26
32
|
//# sourceMappingURL=OnboardingFlow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnboardingFlow.js","sources":["../../../../src/components/Company/OnboardingFlow/OnboardingFlow.tsx"],"sourcesContent":["import { createMachine } from 'robot3'\nimport { useMemo } from 'react'\nimport { onboardingMachine } from './onboardingStateMachine'\nimport type { OnboardingFlowProps } from './OnboardingFlowComponents'\nimport {\n OnboardingOverviewContextual,\n type OnboardingFlowContextInterface,\n} from './OnboardingFlowComponents'\nimport { Flow } from '@/components/Flow/Flow'\n\nexport type { OnboardingFlowProps, OnboardingFlowDefaultValues } from './OnboardingFlowComponents'\n/**\n * Guided flow to onboard a company to Gusto.\n *\n * @remarks\n * The flow begins on the overview screen and steps through locations, federal taxes, industry,\n * bank account, employee onboarding, pay schedule, state taxes, and document signing before\n * returning to the overview.\n *\n * @events\n * | Event | Description | Data |\n * | ----- | ----------- | ---- |\n * | `company/overview/continue` | User chose to continue to the next outstanding onboarding requirement | — |\n * | `company/overview/done` | User signaled they are done with the overview screen | — |\n * | `company/location/done` | User completed the locations step | — |\n * | `company/federalTaxes/done` | User completed the federal taxes step | — |\n * | `company/industry/selected` | User selected and saved an industry | The saved `industry` field from the update industry selection API |\n * | `company/bankAccount/done` | User completed the bank account step | — |\n * | `employee/onboarding/done` | User completed the embedded employee onboarding sub-flow | — |\n * | `paySchedule/done` | User completed the pay schedule step | — |\n * | `company/stateTaxes/done` | User completed the state taxes step | — |\n * | `company/forms/done` | User completed signing company documents | — |\n *\n * Each step is also exported as a standalone block (see the Sub-components\n * table) for composing a custom workflow when this orchestration is the wrong\n * fit. See the\n * {@link https://sdk.gusto.com/docs/guides/integration-guide/composition | Composition guide}\n * for how to recompose these blocks into your own flow.\n *\n * @components\n * - {@link OnboardingOverview}\n * - {@link Locations}\n * - {@link FederalTaxes}\n * - {@link Industry}\n * - {@link BankAccount}\n * - {@link EmployeeOnboarding.OnboardingFlow}\n * - {@link PaySchedule}\n * - {@link StateTaxes}\n * - {@link DocumentSigner}\n *\n * @param props - See {@link OnboardingFlowProps}.\n * @returns The multi-step company onboarding flow with internal navigation between the overview and the per-step screens.\n * @public\n *\n * @example\n * ```tsx title=\"App.tsx\"\n * import { CompanyOnboarding, type EventType } from '@gusto/embedded-react-sdk'\n *\n * function MyApp() {\n * return (\n * <CompanyOnboarding.OnboardingFlow\n * companyId=\"a007e1ab-3595-43c2-ab4b-af7a5af2e365\"\n * onEvent={(eventType: EventType) => {\n * if (eventType === 'company/overview/done') {\n * // Onboarding complete — navigate to your next screen\n * }\n * }}\n * />\n * )\n * }\n * ```\n */\nexport const OnboardingFlow = ({
|
|
1
|
+
{"version":3,"file":"OnboardingFlow.js","sources":["../../../../src/components/Company/OnboardingFlow/OnboardingFlow.tsx"],"sourcesContent":["import { createMachine } from 'robot3'\nimport { useMemo } from 'react'\nimport { onboardingMachine } from './onboardingStateMachine'\nimport type { OnboardingFlowProps } from './OnboardingFlowComponents'\nimport {\n OnboardingOverviewContextual,\n type OnboardingFlowContextInterface,\n} from './OnboardingFlowComponents'\nimport { Flow } from '@/components/Flow/Flow'\n\nexport type { OnboardingFlowProps, OnboardingFlowDefaultValues } from './OnboardingFlowComponents'\n/**\n * Guided flow to onboard a company to Gusto.\n *\n * @remarks\n * The flow begins on the overview screen and steps through locations, federal taxes, industry,\n * bank account, employee onboarding, pay schedule, state taxes, and document signing before\n * returning to the overview.\n *\n * @events\n * | Event | Description | Data |\n * | ----- | ----------- | ---- |\n * | `company/overview/continue` | User chose to continue to the next outstanding onboarding requirement | — |\n * | `company/overview/done` | User signaled they are done with the overview screen | — |\n * | `company/location/done` | User completed the locations step | — |\n * | `company/federalTaxes/done` | User completed the federal taxes step | — |\n * | `company/industry/selected` | User selected and saved an industry | The saved `industry` field from the update industry selection API |\n * | `company/bankAccount/done` | User completed the bank account step | — |\n * | `employee/onboarding/done` | User completed the embedded employee onboarding sub-flow | — |\n * | `paySchedule/done` | User completed the pay schedule step | — |\n * | `company/stateTaxes/done` | User completed the state taxes step | — |\n * | `company/forms/done` | User completed signing company documents | — |\n *\n * Each step is also exported as a standalone block (see the Sub-components\n * table) for composing a custom workflow when this orchestration is the wrong\n * fit. See the\n * {@link https://sdk.gusto.com/docs/guides/integration-guide/composition | Composition guide}\n * for how to recompose these blocks into your own flow.\n *\n * @components\n * - {@link OnboardingOverview}\n * - {@link Locations}\n * - {@link FederalTaxes}\n * - {@link Industry}\n * - {@link BankAccount}\n * - {@link EmployeeOnboarding.OnboardingFlow}\n * - {@link PaySchedule}\n * - {@link StateTaxes}\n * - {@link DocumentSigner}\n *\n * @param props - See {@link OnboardingFlowProps}.\n * @returns The multi-step company onboarding flow with internal navigation between the overview and the per-step screens.\n * @public\n *\n * @example\n * ```tsx title=\"App.tsx\"\n * import { CompanyOnboarding, type EventType } from '@gusto/embedded-react-sdk'\n *\n * function MyApp() {\n * return (\n * <CompanyOnboarding.OnboardingFlow\n * companyId=\"a007e1ab-3595-43c2-ab4b-af7a5af2e365\"\n * onEvent={(eventType: EventType) => {\n * if (eventType === 'company/overview/done') {\n * // Onboarding complete — navigate to your next screen\n * }\n * }}\n * />\n * )\n * }\n * ```\n */\nexport const OnboardingFlow = ({\n companyId,\n signatoryId,\n onEvent,\n defaultValues,\n}: OnboardingFlowProps) => {\n const onboardingFlow = useMemo(\n () =>\n createMachine(\n 'overview',\n onboardingMachine,\n (initialContext: OnboardingFlowContextInterface) => ({\n ...initialContext,\n component: OnboardingOverviewContextual,\n companyId,\n signatoryId,\n defaultValues,\n }),\n ),\n [companyId, signatoryId, defaultValues],\n )\n return <Flow machine={onboardingFlow} onEvent={onEvent} />\n}\n"],"names":["OnboardingFlow","companyId","signatoryId","onEvent","defaultValues","onboardingFlow","useMemo","createMachine","onboardingMachine","initialContext","OnboardingOverviewContextual","jsx","Flow"],"mappings":";;;;;;AAwEO,MAAMA,IAAiB,CAAC;AAAA,EAC7B,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,SAAAC;AAAA,EACA,eAAAC;AACF,MAA2B;AACzB,QAAMC,IAAiBC;AAAA,IACrB,MACEC;AAAA,MACE;AAAA,MACAC;AAAA,MACA,CAACC,OAAoD;AAAA,QACnD,GAAGA;AAAA,QACH,WAAWC;AAAA,QACX,WAAAT;AAAA,QACA,aAAAC;AAAA,QACA,eAAAE;AAAA,MAAA;AAAA,IACF;AAAA,IAEJ,CAACH,GAAWC,GAAaE,CAAa;AAAA,EAAA;AAExC,SAAO,gBAAAO,EAACC,GAAA,EAAK,SAASP,GAAgB,SAAAF,EAAA,CAAkB;AAC1D;"}
|
|
@@ -27,12 +27,20 @@ export type OnboardingFlowDefaultValues = RequireAtLeastOne<{
|
|
|
27
27
|
export interface OnboardingFlowProps extends BaseComponentInterface<never> {
|
|
28
28
|
/** The associated company identifier. */
|
|
29
29
|
companyId: string;
|
|
30
|
+
/**
|
|
31
|
+
* ID of the signatory. Forwarded to the document-signing step. When set and
|
|
32
|
+
* it matches the company's current signatory, the SDK treats the user as
|
|
33
|
+
* the signatory: form fields are pre-populated and document signing is
|
|
34
|
+
* enabled.
|
|
35
|
+
*/
|
|
36
|
+
signatoryId?: string;
|
|
30
37
|
/** Default values applied to individual flow step components (federal taxes, pay schedule). */
|
|
31
38
|
defaultValues?: RequireAtLeastOne<OnboardingFlowDefaultValues>;
|
|
32
39
|
}
|
|
33
40
|
/** @internal */
|
|
34
41
|
export interface OnboardingFlowContextInterface extends FlowContextInterface {
|
|
35
42
|
companyId: string;
|
|
43
|
+
signatoryId?: string;
|
|
36
44
|
defaultValues?: OnboardingFlowDefaultValues;
|
|
37
45
|
}
|
|
38
46
|
/** @internal */
|
|
@@ -5,8 +5,8 @@ import { OnboardingOverview as m } from "../OnboardingOverview/OnboardingOvervie
|
|
|
5
5
|
import { Locations as d } from "../Locations/Locations.js";
|
|
6
6
|
import { useFlow as e } from "../../Flow/useFlow.js";
|
|
7
7
|
import { ensureRequired as r } from "../../../helpers/ensureRequired.js";
|
|
8
|
-
import { OnboardingFlow as
|
|
9
|
-
import { DocumentSigner as
|
|
8
|
+
import { OnboardingFlow as i } from "../../Employee/OnboardingFlow/OnboardingFlow.js";
|
|
9
|
+
import { DocumentSigner as p } from "../DocumentSigner/DocumentSigner.js";
|
|
10
10
|
import { PaySchedule as s } from "../PaySchedule/PaySchedule.js";
|
|
11
11
|
import { Industry as f } from "../Industry/Industry.js";
|
|
12
12
|
import { FederalTaxes as l } from "../FederalTaxes/FederalTaxes.js";
|
|
@@ -36,7 +36,7 @@ function B() {
|
|
|
36
36
|
function k() {
|
|
37
37
|
const { companyId: n, onEvent: o } = e();
|
|
38
38
|
return /* @__PURE__ */ t(
|
|
39
|
-
|
|
39
|
+
i,
|
|
40
40
|
{
|
|
41
41
|
onEvent: o,
|
|
42
42
|
companyId: r(n),
|
|
@@ -60,8 +60,15 @@ function D() {
|
|
|
60
60
|
return /* @__PURE__ */ t(c, { onEvent: o, companyId: r(n) });
|
|
61
61
|
}
|
|
62
62
|
function L() {
|
|
63
|
-
const { companyId: n,
|
|
64
|
-
return /* @__PURE__ */ t(
|
|
63
|
+
const { companyId: n, signatoryId: o, onEvent: a } = e();
|
|
64
|
+
return /* @__PURE__ */ t(
|
|
65
|
+
p,
|
|
66
|
+
{
|
|
67
|
+
onEvent: a,
|
|
68
|
+
companyId: r(n),
|
|
69
|
+
signatoryId: o
|
|
70
|
+
}
|
|
71
|
+
);
|
|
65
72
|
}
|
|
66
73
|
function P() {
|
|
67
74
|
const { companyId: n, onEvent: o } = e();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnboardingFlowComponents.js","sources":["../../../../src/components/Company/OnboardingFlow/OnboardingFlowComponents.tsx"],"sourcesContent":["import { Industry } from '../Industry'\nimport { BankAccount } from '../BankAccount/BankAccount'\nimport { PaySchedule } from '../PaySchedule'\nimport { StateTaxes } from '../StateTaxes/StateTaxes'\nimport { DocumentSigner } from '../DocumentSigner'\nimport { OnboardingOverview } from '../OnboardingOverview/OnboardingOverview'\nimport { FederalTaxes } from '../FederalTaxes'\nimport type { FederalTaxesDefaultValues } from '../FederalTaxes/useFederalTaxes'\nimport type { PayScheduleDefaultValues } from '../PaySchedule/PaySchedule'\nimport { Locations } from '@/components/Company/Locations/Locations'\nimport { useFlow, type FlowContextInterface } from '@/components/Flow/useFlow'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\nimport type { BaseComponentInterface } from '@/components/Base'\nimport { ensureRequired } from '@/helpers/ensureRequired'\nimport { OnboardingFlow as EmployeeOnboardingFlow } from '@/components/Employee/OnboardingFlow/OnboardingFlow'\n\n/**\n * Default values for the company onboarding flow's per-step form components.\n *\n * @remarks\n * At least one of the step-level keys must be provided. Per-step values are\n * forwarded to the matching step component. If company data is already\n * available via the API, the corresponding values are overwritten.\n *\n * @public\n */\nexport type OnboardingFlowDefaultValues = RequireAtLeastOne<{\n /** Default values forwarded to the federal taxes step. */\n federalTaxes?: FederalTaxesDefaultValues\n /** Default values forwarded to the pay schedule step. */\n paySchedule?: PayScheduleDefaultValues\n}>\n\n/**\n * Props for the company onboarding flow orchestrator.\n *\n * @public\n */\nexport interface OnboardingFlowProps extends BaseComponentInterface<never> {\n /** The associated company identifier. */\n companyId: string\n /** Default values applied to individual flow step components (federal taxes, pay schedule). */\n defaultValues?: RequireAtLeastOne<OnboardingFlowDefaultValues>\n}\n/** @internal */\nexport interface OnboardingFlowContextInterface extends FlowContextInterface {\n companyId: string\n defaultValues?: OnboardingFlowDefaultValues\n}\n\n/** @internal */\nexport function LocationsContextual() {\n const { companyId, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return <Locations onEvent={onEvent} companyId={ensureRequired(companyId)} />\n}\n/** @internal */\nexport function FederalTaxesContextual() {\n const { companyId, defaultValues, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return (\n <FederalTaxes\n onEvent={onEvent}\n companyId={ensureRequired(companyId)}\n defaultValues={defaultValues?.federalTaxes}\n />\n )\n}\n\n/** @internal */\nexport function IndustryContextual() {\n const { companyId, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return <Industry onEvent={onEvent} companyId={ensureRequired(companyId)} />\n}\n\n/** @internal */\nexport function BankAccountContextual() {\n const { companyId, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return <BankAccount onEvent={onEvent} companyId={ensureRequired(companyId)} />\n}\n/** @internal */\nexport function EmployeesContextual() {\n const { companyId, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return (\n <EmployeeOnboardingFlow\n onEvent={onEvent}\n companyId={ensureRequired(companyId)}\n showContinueButton\n />\n )\n}\n/** @internal */\nexport function PayScheduleContextual() {\n const { companyId, defaultValues, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return (\n <PaySchedule\n onEvent={onEvent}\n companyId={ensureRequired(companyId)}\n defaultValues={defaultValues?.paySchedule}\n />\n )\n}\n/** @internal */\nexport function StateTaxesContextual() {\n const { companyId, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return <StateTaxes onEvent={onEvent} companyId={ensureRequired(companyId)} />\n}\n/** @internal */\nexport function DocumentSignerContextual() {\n const { companyId, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return <DocumentSigner
|
|
1
|
+
{"version":3,"file":"OnboardingFlowComponents.js","sources":["../../../../src/components/Company/OnboardingFlow/OnboardingFlowComponents.tsx"],"sourcesContent":["import { Industry } from '../Industry'\nimport { BankAccount } from '../BankAccount/BankAccount'\nimport { PaySchedule } from '../PaySchedule'\nimport { StateTaxes } from '../StateTaxes/StateTaxes'\nimport { DocumentSigner } from '../DocumentSigner'\nimport { OnboardingOverview } from '../OnboardingOverview/OnboardingOverview'\nimport { FederalTaxes } from '../FederalTaxes'\nimport type { FederalTaxesDefaultValues } from '../FederalTaxes/useFederalTaxes'\nimport type { PayScheduleDefaultValues } from '../PaySchedule/PaySchedule'\nimport { Locations } from '@/components/Company/Locations/Locations'\nimport { useFlow, type FlowContextInterface } from '@/components/Flow/useFlow'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\nimport type { BaseComponentInterface } from '@/components/Base'\nimport { ensureRequired } from '@/helpers/ensureRequired'\nimport { OnboardingFlow as EmployeeOnboardingFlow } from '@/components/Employee/OnboardingFlow/OnboardingFlow'\n\n/**\n * Default values for the company onboarding flow's per-step form components.\n *\n * @remarks\n * At least one of the step-level keys must be provided. Per-step values are\n * forwarded to the matching step component. If company data is already\n * available via the API, the corresponding values are overwritten.\n *\n * @public\n */\nexport type OnboardingFlowDefaultValues = RequireAtLeastOne<{\n /** Default values forwarded to the federal taxes step. */\n federalTaxes?: FederalTaxesDefaultValues\n /** Default values forwarded to the pay schedule step. */\n paySchedule?: PayScheduleDefaultValues\n}>\n\n/**\n * Props for the company onboarding flow orchestrator.\n *\n * @public\n */\nexport interface OnboardingFlowProps extends BaseComponentInterface<never> {\n /** The associated company identifier. */\n companyId: string\n /**\n * ID of the signatory. Forwarded to the document-signing step. When set and\n * it matches the company's current signatory, the SDK treats the user as\n * the signatory: form fields are pre-populated and document signing is\n * enabled.\n */\n signatoryId?: string\n /** Default values applied to individual flow step components (federal taxes, pay schedule). */\n defaultValues?: RequireAtLeastOne<OnboardingFlowDefaultValues>\n}\n/** @internal */\nexport interface OnboardingFlowContextInterface extends FlowContextInterface {\n companyId: string\n signatoryId?: string\n defaultValues?: OnboardingFlowDefaultValues\n}\n\n/** @internal */\nexport function LocationsContextual() {\n const { companyId, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return <Locations onEvent={onEvent} companyId={ensureRequired(companyId)} />\n}\n/** @internal */\nexport function FederalTaxesContextual() {\n const { companyId, defaultValues, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return (\n <FederalTaxes\n onEvent={onEvent}\n companyId={ensureRequired(companyId)}\n defaultValues={defaultValues?.federalTaxes}\n />\n )\n}\n\n/** @internal */\nexport function IndustryContextual() {\n const { companyId, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return <Industry onEvent={onEvent} companyId={ensureRequired(companyId)} />\n}\n\n/** @internal */\nexport function BankAccountContextual() {\n const { companyId, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return <BankAccount onEvent={onEvent} companyId={ensureRequired(companyId)} />\n}\n/** @internal */\nexport function EmployeesContextual() {\n const { companyId, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return (\n <EmployeeOnboardingFlow\n onEvent={onEvent}\n companyId={ensureRequired(companyId)}\n showContinueButton\n />\n )\n}\n/** @internal */\nexport function PayScheduleContextual() {\n const { companyId, defaultValues, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return (\n <PaySchedule\n onEvent={onEvent}\n companyId={ensureRequired(companyId)}\n defaultValues={defaultValues?.paySchedule}\n />\n )\n}\n/** @internal */\nexport function StateTaxesContextual() {\n const { companyId, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return <StateTaxes onEvent={onEvent} companyId={ensureRequired(companyId)} />\n}\n/** @internal */\nexport function DocumentSignerContextual() {\n const { companyId, signatoryId, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return (\n <DocumentSigner\n onEvent={onEvent}\n companyId={ensureRequired(companyId)}\n signatoryId={signatoryId}\n />\n )\n}\n/** @internal */\nexport function OnboardingOverviewContextual() {\n const { companyId, onEvent } = useFlow<OnboardingFlowContextInterface>()\n return <OnboardingOverview companyId={ensureRequired(companyId)} onEvent={onEvent} />\n}\n"],"names":["LocationsContextual","companyId","onEvent","useFlow","Locations","ensureRequired","FederalTaxesContextual","defaultValues","jsx","FederalTaxes","IndustryContextual","Industry","BankAccountContextual","BankAccount","EmployeesContextual","EmployeeOnboardingFlow","PayScheduleContextual","PaySchedule","StateTaxesContextual","StateTaxes","DocumentSignerContextual","signatoryId","DocumentSigner","OnboardingOverviewContextual","OnboardingOverview"],"mappings":";;;;;;;;;;;;AA2DO,SAASA,IAAsB;AACpC,QAAM,EAAE,WAAAC,GAAW,SAAAC,EAAA,IAAYC,EAAA;AAC/B,2BAAQC,GAAA,EAAU,SAAAF,GAAkB,WAAWG,EAAeJ,CAAS,GAAG;AAC5E;AAEO,SAASK,IAAyB;AACvC,QAAM,EAAE,WAAAL,GAAW,eAAAM,GAAe,SAAAL,EAAA,IAAYC,EAAA;AAC9C,SACE,gBAAAK;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAAP;AAAA,MACA,WAAWG,EAAeJ,CAAS;AAAA,MACnC,eAAeM,GAAe;AAAA,IAAA;AAAA,EAAA;AAGpC;AAGO,SAASG,IAAqB;AACnC,QAAM,EAAE,WAAAT,GAAW,SAAAC,EAAA,IAAYC,EAAA;AAC/B,2BAAQQ,GAAA,EAAS,SAAAT,GAAkB,WAAWG,EAAeJ,CAAS,GAAG;AAC3E;AAGO,SAASW,IAAwB;AACtC,QAAM,EAAE,WAAAX,GAAW,SAAAC,EAAA,IAAYC,EAAA;AAC/B,2BAAQU,GAAA,EAAY,SAAAX,GAAkB,WAAWG,EAAeJ,CAAS,GAAG;AAC9E;AAEO,SAASa,IAAsB;AACpC,QAAM,EAAE,WAAAb,GAAW,SAAAC,EAAA,IAAYC,EAAA;AAC/B,SACE,gBAAAK;AAAA,IAACO;AAAAA,IAAA;AAAA,MACC,SAAAb;AAAA,MACA,WAAWG,EAAeJ,CAAS;AAAA,MACnC,oBAAkB;AAAA,IAAA;AAAA,EAAA;AAGxB;AAEO,SAASe,IAAwB;AACtC,QAAM,EAAE,WAAAf,GAAW,eAAAM,GAAe,SAAAL,EAAA,IAAYC,EAAA;AAC9C,SACE,gBAAAK;AAAA,IAACS;AAAA,IAAA;AAAA,MACC,SAAAf;AAAA,MACA,WAAWG,EAAeJ,CAAS;AAAA,MACnC,eAAeM,GAAe;AAAA,IAAA;AAAA,EAAA;AAGpC;AAEO,SAASW,IAAuB;AACrC,QAAM,EAAE,WAAAjB,GAAW,SAAAC,EAAA,IAAYC,EAAA;AAC/B,2BAAQgB,GAAA,EAAW,SAAAjB,GAAkB,WAAWG,EAAeJ,CAAS,GAAG;AAC7E;AAEO,SAASmB,IAA2B;AACzC,QAAM,EAAE,WAAAnB,GAAW,aAAAoB,GAAa,SAAAnB,EAAA,IAAYC,EAAA;AAC5C,SACE,gBAAAK;AAAA,IAACc;AAAA,IAAA;AAAA,MACC,SAAApB;AAAA,MACA,WAAWG,EAAeJ,CAAS;AAAA,MACnC,aAAAoB;AAAA,IAAA;AAAA,EAAA;AAGN;AAEO,SAASE,IAA+B;AAC7C,QAAM,EAAE,WAAAtB,GAAW,SAAAC,EAAA,IAAYC,EAAA;AAC/B,2BAAQqB,GAAA,EAAmB,WAAWnB,EAAeJ,CAAS,GAAG,SAAAC,GAAkB;AACrF;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gusto/embedded-react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.55.0",
|
|
4
4
|
"homepage": "https://github.com/Gusto/embedded-react-sdk",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/Gusto/embedded-react-sdk/issues"
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@storybook/react-vite": "^10.5.7",
|
|
108
108
|
"@storybook/test-runner": "^0.24.4",
|
|
109
109
|
"@testing-library/dom": "^10.4.1",
|
|
110
|
-
"@testing-library/jest-dom": "^7.0.
|
|
110
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
111
111
|
"@testing-library/react": "^16.3.2",
|
|
112
112
|
"@testing-library/user-event": "^14.6.3",
|
|
113
113
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"react-dnd": "^16.0.1",
|
|
152
152
|
"react-dnd-html5-backend": "^16.0.1",
|
|
153
153
|
"react-router-dom": "^7.18.2",
|
|
154
|
-
"release-it": "^21.0.
|
|
154
|
+
"release-it": "^21.0.2",
|
|
155
155
|
"sass-embedded": "^1.100.0",
|
|
156
156
|
"storybook": "^10.5.5",
|
|
157
157
|
"stylelint-config-standard": "^40.0.0",
|